
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGViewport.h>
#include <OpenSG/OSGViewportBase.h>
#include <OpenSG/OSGDrawAction.h>
#include <OpenSG/OSGRenderAction.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_Viewport_dump_overloads_0_2, dump, 0, 2)


}// namespace 


// Module ======================================================================
void Export_src_pyste_gen_Viewport()
{
    scope* osg_ViewportBase_scope = new scope(
    class_< osg::ViewportBase, bases< osg::AttachmentContainer > , boost::noncopyable >("ViewportBase", no_init)
//        .def_readonly("LeftFieldMask", &osg::ViewportBase::LeftFieldMask)
//        .def_readonly("RightFieldMask", &osg::ViewportBase::RightFieldMask)
//        .def_readonly("BottomFieldMask", &osg::ViewportBase::BottomFieldMask)
//        .def_readonly("TopFieldMask", &osg::ViewportBase::TopFieldMask)
//        .def_readonly("ParentFieldMask", &osg::ViewportBase::ParentFieldMask)
//        .def_readonly("CameraFieldMask", &osg::ViewportBase::CameraFieldMask)
//        .def_readonly("RootFieldMask", &osg::ViewportBase::RootFieldMask)
//        .def_readonly("BackgroundFieldMask", &osg::ViewportBase::BackgroundFieldMask)
//        .def_readonly("ForegroundsFieldMask", &osg::ViewportBase::ForegroundsFieldMask)
//        .def_readonly("TravMaskFieldMask", &osg::ViewportBase::TravMaskFieldMask)
//        .def_readonly("DrawTimeFieldMask", &osg::ViewportBase::DrawTimeFieldMask)
//        .def_readonly("MTInfluenceMask", &osg::ViewportBase::MTInfluenceMask)
        .def("getClassType", &osg::ViewportBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::ViewportBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::ViewportBase::*)() )&osg::ViewportBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::ViewportBase::*)() const)&osg::ViewportBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::ViewportBase::getContainerSize)
        //.def("getLeft", (osg::Real32& (osg::ViewportBase::*)() )&osg::ViewportBase::getLeft, return_value_policy< copy_const_reference >())
        .def("getLeft", (const osg::Real32& (osg::ViewportBase::*)() const)&osg::ViewportBase::getLeft, return_value_policy< copy_const_reference >())
        //.def("getRight", (osg::Real32& (osg::ViewportBase::*)() )&osg::ViewportBase::getRight, return_value_policy< copy_const_reference >())
        .def("getRight", (const osg::Real32& (osg::ViewportBase::*)() const)&osg::ViewportBase::getRight, return_value_policy< copy_const_reference >())
        //.def("getBottom", (osg::Real32& (osg::ViewportBase::*)() )&osg::ViewportBase::getBottom, return_value_policy< copy_const_reference >())
        .def("getBottom", (const osg::Real32& (osg::ViewportBase::*)() const)&osg::ViewportBase::getBottom, return_value_policy< copy_const_reference >())
        //.def("getTop", (osg::Real32& (osg::ViewportBase::*)() )&osg::ViewportBase::getTop, return_value_policy< copy_const_reference >())
        .def("getTop", (const osg::Real32& (osg::ViewportBase::*)() const)&osg::ViewportBase::getTop, return_value_policy< copy_const_reference >())
        //.def("getParent", (osg::WindowPtr& (osg::ViewportBase::*)() )&osg::ViewportBase::getParent, return_value_policy< copy_const_reference >())
        .def("getParent", (const osg::WindowPtr& (osg::ViewportBase::*)() const)&osg::ViewportBase::getParent, return_value_policy< copy_const_reference >())
        //.def("getCamera", (osg::CameraPtr& (osg::ViewportBase::*)() )&osg::ViewportBase::getCamera, return_value_policy< copy_const_reference >())
        .def("getCamera", (const osg::CameraPtr& (osg::ViewportBase::*)() const)&osg::ViewportBase::getCamera, return_value_policy< copy_const_reference >())
        //.def("getRoot", (osg::NodePtr& (osg::ViewportBase::*)() )&osg::ViewportBase::getRoot, return_value_policy< copy_const_reference >())
        .def("getRoot", (const osg::NodePtr& (osg::ViewportBase::*)() const)&osg::ViewportBase::getRoot, return_value_policy< copy_const_reference >())
        //.def("getBackground", (osg::BackgroundPtr& (osg::ViewportBase::*)() )&osg::ViewportBase::getBackground, return_value_policy< copy_const_reference >())
        .def("getBackground", (const osg::BackgroundPtr& (osg::ViewportBase::*)() const)&osg::ViewportBase::getBackground, return_value_policy< copy_const_reference >())
        //.def("getTravMask", (osg::UInt32& (osg::ViewportBase::*)() )&osg::ViewportBase::getTravMask, return_value_policy< copy_const_reference >())
        .def("getTravMask", (const osg::UInt32& (osg::ViewportBase::*)() const)&osg::ViewportBase::getTravMask, return_value_policy< copy_const_reference >())
        //.def("getDrawTime", (osg::Real32& (osg::ViewportBase::*)() )&osg::ViewportBase::getDrawTime, return_value_policy< copy_const_reference >())
        .def("getDrawTime", (const osg::Real32& (osg::ViewportBase::*)() const)&osg::ViewportBase::getDrawTime, return_value_policy< copy_const_reference >())
        .def("getForegrounds", (osg::ForegroundPtr& (osg::ViewportBase::*)(const osg::UInt32) )&osg::ViewportBase::getForegrounds, return_value_policy< copy_non_const_reference >())
        //.def("getForegrounds", (osg::MFForegroundPtr& (osg::ViewportBase::*)() )&osg::ViewportBase::getForegrounds, return_value_policy< copy_const_reference >())
        .def("getForegrounds", (const osg::MFForegroundPtr& (osg::ViewportBase::*)() const)&osg::ViewportBase::getForegrounds, return_value_policy< copy_const_reference >())
        .def("setLeft", &osg::ViewportBase::setLeft)
        .def("setRight", &osg::ViewportBase::setRight)
        .def("setBottom", &osg::ViewportBase::setBottom)
        .def("setTop", &osg::ViewportBase::setTop)
        .def("setParent", &osg::ViewportBase::setParent)
        .def("setCamera", &osg::ViewportBase::setCamera)
        .def("setRoot", &osg::ViewportBase::setRoot)
        .def("setBackground", &osg::ViewportBase::setBackground)
        .def("setTravMask", &osg::ViewportBase::setTravMask)
        .def("setDrawTime", &osg::ViewportBase::setDrawTime)
        .def("getBinSize", &osg::ViewportBase::getBinSize)
        .def("copyToBin", &osg::ViewportBase::copyToBin)
        .def("copyFromBin", &osg::ViewportBase::copyFromBin)
        .def("create", &osg::ViewportBase::create)
        .def("createEmpty", &osg::ViewportBase::createEmpty)
        .def("shallowCopy", &osg::ViewportBase::shallowCopy)
        .staticmethod("getClassType")
        .staticmethod("create")
        .staticmethod("createEmpty")
        .staticmethod("getClassTypeId")
    );

    scope().attr("RightFieldId") = (int)osg::ViewportBase::RightFieldId;
    scope().attr("BackgroundFieldId") = (int)osg::ViewportBase::BackgroundFieldId;
    scope().attr("DrawTimeFieldId") = (int)osg::ViewportBase::DrawTimeFieldId;
    scope().attr("NextFieldId") = (int)osg::ViewportBase::NextFieldId;
    scope().attr("TopFieldId") = (int)osg::ViewportBase::TopFieldId;
    scope().attr("CameraFieldId") = (int)osg::ViewportBase::CameraFieldId;
    scope().attr("BottomFieldId") = (int)osg::ViewportBase::BottomFieldId;
    scope().attr("ParentFieldId") = (int)osg::ViewportBase::ParentFieldId;
    scope().attr("ForegroundsFieldId") = (int)osg::ViewportBase::ForegroundsFieldId;
    scope().attr("RootFieldId") = (int)osg::ViewportBase::RootFieldId;
    scope().attr("LeftFieldId") = (int)osg::ViewportBase::LeftFieldId;
    scope().attr("TravMaskFieldId") = (int)osg::ViewportBase::TravMaskFieldId;

    delete osg_ViewportBase_scope;

    class_< osg::Viewport, bases< osg::ViewportBase > , boost::noncopyable, osg::ViewportRefPtr >("Viewport", no_init)
        .def("getClassname", &osg::Viewport::getClassname)
        .def("setSize", &osg::Viewport::setSize)
        .def("getPixelLeft", &osg::Viewport::getPixelLeft)
        .def("getPixelRight", &osg::Viewport::getPixelRight)
        .def("getPixelBottom", &osg::Viewport::getPixelBottom)
        .def("getPixelTop", &osg::Viewport::getPixelTop)
        .def("getPixelWidth", &osg::Viewport::getPixelWidth)
        .def("getPixelHeight", &osg::Viewport::getPixelHeight)
        .def("isFullWindow", &osg::Viewport::isFullWindow)
        .def("draw", &osg::Viewport::draw)
        .def("render", &osg::Viewport::render)
        .def("changed", &osg::Viewport::changed)
        .def("dump", &osg::Viewport::dump, osg_Viewport_dump_overloads_0_2())
        .staticmethod("getClassname")
    ;


    register_ptr_to_python<osg::ViewportPtr>();
    implicitly_convertible<osg::ViewportRefPtr, osg::ViewportPtr>();
    implicitly_convertible<osg::ViewportPtr, osg::AttachmentContainerPtr>();
    
    def("RefPtr", &pyopensg::ToRefPtr<osg::ViewportPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::ViewportPtr>);
}

